﻿@using Abp.Extensions
@using Abp.Application.Services.Dto
@using Akso.Entities
@using Akso.Web.Areas.Mpa.Models.Common.Modals
@model Akso.Web.Areas.FinanceModule.Models.DataMaintains.CreateOrEditIncomeExpendTypeModalViewModel
@Html.Partial("~/Areas/Mpa/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("Pages_FinanceModule_DataMaintains_EditIEType") + ": " + Model.IncomeExpendType.IETypeName) : L("Pages_FinanceModule_DataMaintains_CreateIEType")))
<div class="modal-body">

    <form name="ObjectForm" role="form" novalidate class="form-validation">
        
        @if (Model.IsEditMode)
        {
            <input type="hidden" name="Id" value="@Model.IncomeExpendType.Id" />
        }
        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <label>@L("Pages_FinanceModule_IETypes_GridColumn_IEtype")</label>
            <input id="Income" name="IETypeId" type="radio" value="1" @Html.Raw(Model.IncomeExpendType.IETypeId == 1 ? "checked=\"checked\"" : "") />收入
            <input id="Expend" name="IETypeId" type="radio" value="2" @Html.Raw(Model.IncomeExpendType.IETypeId == 2 ? "checked=\"checked\"" : "") />支出
            
        </div>
        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" name="IETypeName" value="@Model.IncomeExpendType.IETypeName" class="form-control edited" required maxlength="@IncomeExpendType.MaxNameLength" />
            <label>@L("Pages_FinanceModule_IETypes_GridColumn_IEName")</label>
        </div>
      
        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" name="Remark" value="@Model.IncomeExpendType.Remark" class="form-control edited" required maxlength="@IncomeExpendType.MaxRemarkLength" />
            <label>@L("Pages_FinanceModule_IETypes_GridColumn_Remark")</label>
        </div>

    </form>

</div>

@Html.Partial("~/Areas/Mpa/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")



